<?php
/**
 * Default Add Page Template
 *
 * @package OWL
 * @subpackage Default Template
 * @author KeiMOon
 * @since 1.0
 */
class Template_Add_Page extends Owl_Master_Template {
    protected function init() {
        $user = Owl_User::get_instance();
        if (!$user->is_logged_in()) {
            Owl_Functions::go_to_template("login");
        }
        assign("title", get_option("site_name") . " - " . __("Add page"));
        assign("page-title", __("Add page"));
        enqueue_style('default-setting,default-icon,default-ajax,default-pages');
        enqueue_script('default-add-page');

        $this->owl_page = new Owl_Page();
    }

    protected function main_content() {
?>
<div id="setting-navigation">
    <?php Owl_Default_Content::setting_navigation(); ?>
    <div style="clear:both;"></div>
</div>
<div id="setting-page-header" class="has-icon icon-add-page-48">
    <div id="setting-page-title">
        <?php put("page-title"); ?>
    </div>
</div>
<div id="setting-main-content">
    <?php $this->owl_page->print_form(); ?>
</div>
<?php
    }
}